package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Top102 {
    public static void main(String[] args) {
        int i, s, t;
        int sum = 0;
        Scanner in = new Scanner(System.in);
        System.out.println("请输入10个数：");
        for (i = 0; i < 10; i++) {
            s = in.nextInt();
            if (i == 0) {
                sum = s;
            } else if (sum < s) {
                sum = s;
            }
        }
        System.out.println("他们中最大的是：" + sum);
    }
}
